package com.doudizu.shoesonline.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 地址簿
 * @TableName address
 */
@TableName(value ="address")
@Data
public class Address implements Serializable {

    /**
     * 地址簿id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 收货人名称
     */
    private String name;

    /**
     * 收货人手机号
     */
    private String phone;

    /**
     * 详细地址
     */
    private String addressName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}